<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<%@ page import="java.util.ArrayList" %>
<%@ page import="slim3.demo.controller.tpe.FlightBean" %>

<html>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta content="120; url=http://apbfour.appspot.com/tpe/tomorrowDeparture" http-equiv="refresh">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>桃園機場 - 明日離站客機</title>
<link rel="stylesheet" type="text/css" href="blueprint/screen.css" />
<link href="tablecloth/tablecloth_smallfont.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="tablecloth/tablecloth.js"></script>

<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" href="apple-touch-icon.png"/>
<link rel="apple-touch-startup-image" href="apple-touch-icon.png" />

<script type="text/javascript" src="./jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
// When document is ready: this gets fired before body onload :)
$(document).ready(function(){
	// Write on keyup event of keyword input element
	$("#kwd_search").keyup(function(){
		// When value of the input is not blank
		if( $(this).val() != "")
		{
			// Show only matching TR, hide rest of them
			$("#my-table tbody>tr").hide();
			$("#my-table td:contains-ci('" + $(this).val() + "')").parent("tr").show();
		}
		else
		{
			// When there is no input or clean again, show everything back
			$("#my-table tbody>tr").show();
		}
	});
});
// jQuery expression for case-insensitive filter
$.extend($.expr[":"], 
{
    "contains-ci": function(elem, i, match, array) 
	{
		return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
	}
});

</script>

<style>

body{
	margin:0;
	padding:0;
	background:#f1f1f1;
	font:200% "標楷體", Arial, Helvetica, sans-serif; 
	color:#555;
	line-height:150%;
	text-align:left;
}
a{
	text-decoration:none;
	color:#057fac;
}
a:hover{
	text-decoration:none;
	color:#999;
}
h1{
	font-size:140%;
	margin:0 20px;
	line-height:80px;	
}
h2{
	font-size:120%;
}
#container{
	margin:0 auto;
	width:680px;
	background:#fff;
	padding-bottom:20px;
}
#content{margin:0 20px;}
p.sig{	
	margin:0 auto;
	width:680px;
	padding:1em 0;
}
form{
	margin:1em 0;
	padding:.2em 20px;
	background:#eee;
}
</style>


<script type="text/javascript">
<!--
function reload(condition) {
	if (condition == "yes") {
		document.location.reload(true);
	}
}
//-->
</script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-33867276-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>


</head>
<body>
<script type="text/javascript" src="wz_tooltip/wz_tooltip.js"></script>

<%
	String infoAirline = (String) request.getAttribute("infoAirline");
	//<%=infoAirline
%>

<center>
  <p class="notice"><font color="#CC6600" size="+1">此網頁每隔2分鐘將自動重新整理&nbsp;&nbsp;&nbsp;&nbsp;<a href="/six/list"><font color="0000FF">主目錄</font></a></font></p><br>
  <%
	String year = (String) request.getAttribute("year");
	String month = (String) request.getAttribute("month");
	String day = (String) request.getAttribute("day");
	String hour = (String) request.getAttribute("hour");
	String minute = (String) request.getAttribute("minute");
	String second = (String) request.getAttribute("second");
	
  %>
    中華民國<%=year %>年<%=month %>月<%=day %>日<%=hour %>時<%=minute %>分<%=second %>秒<br />
    桃園機場明日離站客機

<p><font color="#0000FF" size="+1" face="Verdana">即時搜尋：<input type="text" id="kwd_search" value=""/></font></p>

</center>

	<table id="my-table" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<th>往來地</th>
			<th>航空公司</th>
			<th>編號</th>
			<th>表定時間</th>
			<th>實際時間</th>
			<th>航廈</th>
			<th>登機門</th>
			<th>狀態</th>
		</tr>
	</thead>

		<%
			ArrayList<FlightBean> beans = (ArrayList<FlightBean>) request.getAttribute("flightlist");
			String temp = "";
			String temp2 = "";
			String[] temp3 = new String[3];
			String country = "";
			String countryFlag = "";
			String city = "";
			boolean hasTranslation = true;
		%>
		<%
			if (beans.size()==0) {
		%>		
				</table><font color="#FF0000" size="+2">請稍等一下，為您重新讀取桃園機場資料庫！</font>
				<script type="text/javascript" language="JavaScript">
         			reload("yes");
      			</script>
		<%
			} else {
		%>
	<tbody>
		<%
			for (int i=0; i<beans.size(); i++) {
		%>
		
			<tr>
			
				<td>
					<!-- getOriginOrDestination -->
					<%
						hasTranslation = true;
						if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Abudhabi")) {
							temp = "阿布達比 阿聯";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Amsterdam")) {
							temp = "阿姆斯特丹 荷蘭";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Anchorage")) {
							temp = "安克拉治 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Aomori")) {
							temp = "青森市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Auckland")) { //FX-12提供地點有誤
							temp = "奧克蘭 紐西蘭";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Bali")) {
							temp = "峇里島 印尼";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Bangkok")) {
							temp = "曼谷 泰國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Beijing")) {
							temp = "北京市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Brisbane")) {
							temp = "布里斯本 澳洲";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Busan")) {
							temp = "釜山 韓國(南韓)";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Cebu")) {
							temp = "宿霧市 菲律賓";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Changchun")) {
							temp = "長春市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Changsha")) {
							temp = "長沙市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Chengdu")) {
							temp = "成都市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Chiang Mai")) {
							temp = "清邁 泰國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Chongqing")) {
							temp = "重慶市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Clark")) {
							temp = "克拉克 菲律賓";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Colombo")) {
							temp = "可倫坡 斯里蘭卡";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Dalian")) {
							temp = "大連市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Delhi")) {
							temp = "德里 印度";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Dubai")) {
							temp = "杜拜 阿聯";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Frankfurt")) {
							temp = "美因河畔法蘭克福 德國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Fukuoka")) {
							temp = "福岡市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Fuzhou")) {
							temp = "福州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Guam")) {
							temp = "關島 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Guangzhou")) {
							temp = "廣州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Guilin")) {
							temp = "桂林市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Guiyang")) {
							temp = "貴陽市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Haikou")) {
							temp = "海口市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Hakodate")) {
							temp = "函館市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Hangzhou")) {
							temp = "杭州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Hanoi")) {
							temp = "河內市 越南";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Harbin")) {
							temp = "哈爾濱市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Hefei")) {
							temp = "合肥市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Hiroshima")) {
							temp = "廣島市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Ho Chi Minh")) {
							temp = "胡志明市 越南";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Hong Kong")) {
							temp = "香港 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Honolulu")) {
							temp = "檀香山 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("HuangShan Tunxi")) {
							temp = "黃山市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Huston")) {
							temp = "休士頓 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Jakarta")) {
							temp = "雅加達 印尼";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Jeju")) {
							temp = "濟州市 韓國(南韓)";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Jinan")) {
							temp = "濟南市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kalibo")) {
							temp = "長灘島 菲律賓";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kaohsiung")) {
							temp = "高雄市 中華民國(台灣)";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Komatu")) {
							temp = "小松市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kota Kinabalu")) {
							temp = "亞庇 馬來西亞";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kuala Lumpur")) {
							temp = "吉隆坡 馬來西亞";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kunming")) {
							temp = "昆明市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kuwait")) {
							temp = "科威特市 科威特";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Lahore")) {
							temp = "拉合爾 巴基斯坦";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Lanzhou")) {
							temp = "蘭州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Laoag")) {
							temp = "佬沃 菲律賓";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("London")) {
							temp = "倫敦 英國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Los Angeles")) {
							temp = "洛杉磯 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Macau")) {
							temp = "澳門 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Manila")) {
							temp = "馬尼拉 菲律賓";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Miami")) {
							temp = "邁阿密 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Miyazaki")) {
							temp = "宮崎市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Mumbai")) {
							temp = "孟買 印度";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Nagoya")) {
							temp = "名古屋市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Nanchang")) {
							temp = "南昌市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Nanjing")) {
							temp = "南京市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Nanning")) {
							temp = "南寧市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("New Chitose")) { //似乎沒用到
							temp = "札幌市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("New York")) {
							temp = "紐約 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Newark Liberty")) {
							temp = "紐約 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Ningbo")) {
							temp = "寧波市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Obihiro")) {
							temp = "帶廣市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Okinawa")) {
							temp = "那霸市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Osaka Kansai")) {
							temp = "泉佐野市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Palau")) {
							temp = "埃拉伊 帛琉";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Paris")) {
							temp = "巴黎 法國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Penang")) {
							temp = "檳城 馬來西亞";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Phnom Penh")) {
							temp = "金邊 柬埔寨";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Phuket")) {
							temp = "普吉府 泰國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Qingdao")) {
							temp = "青島市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Quanzhou")) {
							temp = "泉州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Riyadh")) {
							temp = "利雅德 沙烏地阿拉伯";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Rome")) {
							temp = "羅馬 義大利";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Saipan")) {
							temp = "塞班島 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("San Francisco")) {
							temp = "舊金山 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Sanya")) {
							temp = "三亞市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Sapporo")) {
							temp = "札幌市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Seattle")) {
							temp = "西雅圖 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Sendai")) {
							temp = "仙台市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Seoul/Incheon")) {
							temp = "首爾 韓國(南韓)";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Shanghai")) {
							temp = "上海市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Shenyang")) {
							temp = "瀋陽市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Shenzhen")) {
							temp = "深圳市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Shijiazhuang")) {
							temp = "石家莊市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Shizuoka")) {
							temp = "靜岡市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Singapore")) {
							temp = "樟宜 新加坡";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Subic")) {
							temp = "蘇比克灣 菲律賓";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Surabaya")) {
							temp = "泗水 印度";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Sydney")) {
							temp = "雪梨 澳洲";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Taiyuan")) {
							temp = "太原市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Tianjin")) {
							temp = "天津市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Tokyo")) {
							temp = "東京 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Toronto")) {
							temp = "多倫多 加拿大";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Toyama")) {
							temp = "富山市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Vancouver")) {
							temp = "溫哥華 加拿大";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Vienna")) {
							temp = "維也納 奧地利";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Vientiane")) {
							temp = "永珍 寮國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Wenzhou")) {
							temp = "溫州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Wuhan")) {
							temp = "武漢市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Wuxi")) {
							temp = "無錫市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Xiamen")) {
							temp = "廈門市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Xian")) {
							temp = "西安市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Xuzhou")) {
							temp = "徐州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Yamagata")) {
							temp = "東根市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Yan Cheng")) {
							temp = "鹽城市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Yangon")) {
							temp = "仰光 緬甸";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Yantai")) {
							temp = "煙臺市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Zhengzhou")) {
							temp = "鄭州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Isigakijima")) { //should be Ishigakijima
							temp = "石垣島 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kagoshima")) {
							temp = "霧島市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Wenxhou")) {
							temp = "溫州市 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("DTW")) {
							temp = "底特律 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Yancheng")) {
							temp = "鹽城 中國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("ANKOR")) {
							temp = "吳哥窟 柬埔寨";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Komatsu")) {
							temp = "小松市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Dallas")) {
							temp = "達拉斯 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Chicago/Anchorage")) {
							temp = "芝加哥/安克拉治 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("LUX")) {
							temp = "盧森堡市 盧森堡";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Brussels")) {
							temp = "布魯塞爾 比利時";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Dallas/Seattle")) {
							temp = "達拉斯/西雅圖 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kuantan")) {
							temp = "關丹 馬來西亞";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("OITA")) {
							temp = "大分縣 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Atlanta/Anchorage")) {
							temp = "亞特蘭大/安克拉治 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Haneda")) {
							temp = "東京 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Chicago")) {
							temp = "芝加哥 美國";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Asahikawa")) {
							temp = "旭川市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("VVO")) {
							temp = "海參崴 俄羅斯";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kusiro")) {
							temp = "釧路市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("Kochi")) {
							temp = "高知市 日本";
						} else if (beans.get(i).getOriginOrDestination().equalsIgnoreCase("KotaKinabalu")) {
							temp = "亞庇 馬來西亞";
						} else {
							temp = beans.get(i).getOriginOrDestination();
							hasTranslation = false;
						}				
					%>
					
					<%
						if (hasTranslation) {
							temp3 = temp.split(" ");
							city = temp3[0];
							country = temp3[1];
					%>
					<%
							if (country.equals("中華民國(台灣)")) {
								countryFlag = "Taiwan";
							} else if (country.equals("阿聯")) {
								countryFlag = "United-Arab-Emirates";
							} else if (country.equals("荷蘭")) {
								countryFlag = "Netherlands";
							} else if (country.equals("美國")) {
								countryFlag = "United-States-of-America";
							} else if (country.equals("日本")) {
								countryFlag = "Japan";
							} else if (country.equals("紐西蘭")) {
								countryFlag = "New-Zealand";
							} else if (country.equals("印尼")) {
								countryFlag = "Indonezia";
							} else if (country.equals("泰國")) {
								countryFlag = "Thailand";
							} else if (country.equals("中國")) {
								countryFlag = "China";
							} else if (country.equals("澳洲")) {
								countryFlag = "Australia";
							} else if (country.equals("韓國(南韓)")) {
								countryFlag = "South-Korea";
							} else if (country.equals("菲律賓")) {
								countryFlag = "Philippines";
							} else if (country.equals("斯里蘭卡")) {
								countryFlag = "Sri-Lanka";
							} else if (country.equals("印度")) {
								countryFlag = "India";
							} else if (country.equals("德國")) {
								countryFlag = "Germany";
							} else if (country.equals("越南")) {
								countryFlag = "Viet-Nam";
							} else if (country.equals("馬來西亞")) {
								countryFlag = "Malaysia";
							} else if (country.equals("科威特")) {
								countryFlag = "Kuwait";
							} else if (country.equals("巴基斯坦")) {
								countryFlag = "Pakistan";
							} else if (country.equals("英國")) {
								countryFlag = "United-Kingdom";
							} else if (country.equals("帛琉")) {
								countryFlag = "Palau";
							} else if (country.equals("法國")) {
								countryFlag = "France";
							} else if (country.equals("柬埔寨")) {
								countryFlag = "Cambodia";
							} else if (country.equals("沙烏地阿拉伯")) {
								countryFlag = "Saudi-Arabia";
							} else if (country.equals("義大利")) {
								countryFlag = "Italy";
							} else if (country.equals("新加坡")) {
								countryFlag = "Singapore";
							} else if (country.equals("加拿大")) {
								countryFlag = "Canada";
							} else if (country.equals("奧地利")) {
								countryFlag = "Austria";
							} else if (country.equals("寮國")) {
								countryFlag = "Laos";
							} else if (country.equals("緬甸")) {
								countryFlag = "Myanmar-Burma";
							} else if (country.equals("盧森堡")) {
								countryFlag = "Luxembourg";
							} else if (country.equals("比利時")) {
								countryFlag = "Belgium";
							} else if (country.equals("俄羅斯")) {
								countryFlag = "Russian-Federation";
							} else {
								countryFlag = "unknown";
							}
					%>
								<img src="flags/national-flag-symbols/<%=countryFlag %>-Flag.png" align="absmiddle" alt="<%=country %>" onmouseover="Tip('<%=country %>')" onmouseout="UnTip()">
								<a href="http://zh.wikipedia.org/zh-tw/<%=city %>" target="_blank"><%=city %></a>
					<%
						} else {
					%>
							<a href="http://zh.wikipedia.org/zh-tw/<%=temp %>" target="_blank"><%=temp %></a>
					<%
						}
					%>
					
					
					<!-- getVia -->
					<%
						if (beans.get(i).getVia().equals("")) {
							//ignore, display nothing
						} else {
					%>
							&nbsp;經由
					<%
							hasTranslation = true;
							if (beans.get(i).getVia().equalsIgnoreCase("Abudhabi")) {
								temp = "阿布達比 阿聯";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Amsterdam")) {
								temp = "阿姆斯特丹 荷蘭";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Anchorage")) {
								temp = "安克拉治 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Aomori")) {
								temp = "青森市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Auckland")) { //FX-12提供地點有誤
								temp = "奧克蘭 紐西蘭";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Bali")) {
								temp = "峇里島 印尼";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Bangkok")) {
								temp = "曼谷 泰國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Beijing")) {
								temp = "北京市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Brisbane")) {
								temp = "布里斯本 澳洲";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Busan")) {
								temp = "釜山 韓國(南韓)";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Cebu")) {
								temp = "宿霧市 菲律賓";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Changchun")) {
								temp = "長春市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Changsha")) {
								temp = "長沙市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Chengdu")) {
								temp = "成都市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Chiang Mai")) {
								temp = "清邁 泰國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Chongqing")) {
								temp = "重慶市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Clark")) {
								temp = "克拉克 菲律賓";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Colombo")) {
								temp = "可倫坡 斯里蘭卡";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Dalian")) {
								temp = "大連市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Delhi")) {
								temp = "德里 印度";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Dubai")) {
								temp = "杜拜 阿聯";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Frankfurt")) {
								temp = "美因河畔法蘭克福 德國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Fukuoka")) {
								temp = "福岡市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Fuzhou")) {
								temp = "福州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Guam")) {
								temp = "關島 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Guangzhou")) {
								temp = "廣州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Guilin")) {
								temp = "桂林市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Guiyang")) {
								temp = "貴陽市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Haikou")) {
								temp = "海口市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Hakodate")) {
								temp = "函館市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Hangzhou")) {
								temp = "杭州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Hanoi")) {
								temp = "河內市 越南";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Harbin")) {
								temp = "哈爾濱市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Hefei")) {
								temp = "合肥市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Hiroshima")) {
								temp = "廣島市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Ho Chi Minh")) {
								temp = "胡志明市 越南";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Hong Kong")) {
								temp = "香港 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Honolulu")) {
								temp = "檀香山 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("HuangShan Tunxi")) {
								temp = "黃山市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Huston")) {
								temp = "休士頓 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Jakarta")) {
								temp = "雅加達 印尼";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Jeju")) {
								temp = "濟州市 韓國(南韓)";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Jinan")) {
								temp = "濟南市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kalibo")) {
								temp = "長灘島 菲律賓";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kaohsiung")) {
								temp = "高雄市 中華民國(台灣)";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Komatu")) {
								temp = "小松市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kota Kinabalu")) {
								temp = "亞庇 馬來西亞";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kuala Lumpur")) {
								temp = "吉隆坡 馬來西亞";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kunming")) {
								temp = "昆明市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kuwait")) {
								temp = "科威特市 科威特";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Lahore")) {
								temp = "拉合爾 巴基斯坦";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Lanzhou")) {
								temp = "蘭州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Laoag")) {
								temp = "佬沃 菲律賓";
							} else if (beans.get(i).getVia().equalsIgnoreCase("London")) {
								temp = "倫敦 英國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Los Angeles")) {
								temp = "洛杉磯 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Macau")) {
								temp = "澳門 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Manila")) {
								temp = "馬尼拉 菲律賓";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Miami")) {
								temp = "邁阿密 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Miyazaki")) {
								temp = "宮崎市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Mumbai")) {
								temp = "孟買 印度";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Nagoya")) {
								temp = "名古屋市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Nanchang")) {
								temp = "南昌市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Nanjing")) {
								temp = "南京市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Nanning")) {
								temp = "南寧市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("New Chitose")) { //似乎沒用到
								temp = "札幌市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("New York")) {
								temp = "紐約 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Newark Liberty")) {
								temp = "紐約 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Ningbo")) {
								temp = "寧波市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Obihiro")) {
								temp = "帶廣市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Okinawa")) {
								temp = "那霸市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Osaka Kansai")) {
								temp = "泉佐野市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Palau")) {
								temp = "埃拉伊 帛琉";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Paris")) {
								temp = "巴黎 法國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Penang")) {
								temp = "檳城 馬來西亞";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Phnom Penh")) {
								temp = "金邊 柬埔寨";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Phuket")) {
								temp = "普吉府 泰國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Qingdao")) {
								temp = "青島市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Quanzhou")) {
								temp = "泉州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Riyadh")) {
								temp = "利雅德 沙烏地阿拉伯";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Rome")) {
								temp = "羅馬 義大利";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Saipan")) {
								temp = "塞班島 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("San Francisco")) {
								temp = "舊金山 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Sanya")) {
								temp = "三亞市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Sapporo")) {
								temp = "札幌市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Seattle")) {
								temp = "西雅圖 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Sendai")) {
								temp = "仙台市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Seoul/Incheon")) {
								temp = "首爾 韓國(南韓)";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Shanghai")) {
								temp = "上海市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Shenyang")) {
								temp = "瀋陽市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Shenzhen")) {
								temp = "深圳市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Shijiazhuang")) {
								temp = "石家莊市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Shizuoka")) {
								temp = "靜岡市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Singapore")) {
								temp = "樟宜 新加坡";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Subic")) {
								temp = "蘇比克灣 菲律賓";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Surabaya")) {
								temp = "泗水 印度";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Sydney")) {
								temp = "雪梨 澳洲";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Taiyuan")) {
								temp = "太原市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Tianjin")) {
								temp = "天津市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Tokyo")) {
								temp = "東京 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Toronto")) {
								temp = "多倫多 加拿大";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Toyama")) {
								temp = "富山市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Vancouver")) {
								temp = "溫哥華 加拿大";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Vienna")) {
								temp = "維也納 奧地利";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Vientiane")) {
								temp = "永珍 寮國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Wenzhou")) {
								temp = "溫州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Wuhan")) {
								temp = "武漢市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Wuxi")) {
								temp = "無錫市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Xiamen")) {
								temp = "廈門市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Xian")) {
								temp = "西安市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Xuzhou")) {
								temp = "徐州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Yamagata")) {
								temp = "東根市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Yan Cheng")) {
								temp = "鹽城市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Yangon")) {
								temp = "仰光 緬甸";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Yantai")) {
								temp = "煙臺市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Zhengzhou")) {
								temp = "鄭州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Isigakijima")) { //should be Ishigakijima
								temp = "石垣島 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kagoshima")) {
								temp = "霧島市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Wenxhou")) {
								temp = "溫州市 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("DTW")) {
								temp = "底特律 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Yancheng")) {
								temp = "鹽城 中國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("ANKOR")) {
								temp = "吳哥窟 柬埔寨";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Komatsu")) {
								temp = "小松市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Dallas")) {
								temp = "達拉斯 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Chicago/Anchorage")) {
								temp = "芝加哥/安克拉治 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("LUX")) {
								temp = "盧森堡市 盧森堡";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Brussels")) {
								temp = "布魯塞爾 比利時";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Dallas/Seattle")) {
								temp = "達拉斯/西雅圖 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kuantan")) {
								temp = "關丹 馬來西亞";
							} else if (beans.get(i).getVia().equalsIgnoreCase("OITA")) {
								temp = "大分縣 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Atlanta/Anchorage")) {
								temp = "亞特蘭大/安克拉治 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Haneda")) {
								temp = "東京 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Chicago")) {
								temp = "芝加哥 美國";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Asahikawa")) {
								temp = "旭川市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("VVO")) {
								temp = "海參崴 俄羅斯";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kusiro")) {
								temp = "釧路市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("Kochi")) {
								temp = "高知市 日本";
							} else if (beans.get(i).getVia().equalsIgnoreCase("KotaKinabalu")) {
								temp = "亞庇 馬來西亞";
							} else {
								temp = beans.get(i).getVia();
								hasTranslation = false;
							}				
					%>
					
					<%
							if (hasTranslation) {
								temp3 = temp.split(" ");
								city = temp3[0];
								country = temp3[1];
					%>
					<%
								if (country.equals("中華民國(台灣)")) {
									countryFlag = "Taiwan";
								} else if (country.equals("阿聯")) {
									countryFlag = "United-Arab-Emirates";
								} else if (country.equals("荷蘭")) {
									countryFlag = "Netherlands";
								} else if (country.equals("美國")) {
									countryFlag = "United-States-of-America";
								} else if (country.equals("日本")) {
									countryFlag = "Japan";
								} else if (country.equals("紐西蘭")) {
									countryFlag = "New-Zealand";
								} else if (country.equals("印尼")) {
									countryFlag = "Indonezia";
								} else if (country.equals("泰國")) {
									countryFlag = "Thailand";
								} else if (country.equals("中國")) {
									countryFlag = "China";
								} else if (country.equals("澳洲")) {
									countryFlag = "Australia";
								} else if (country.equals("韓國(南韓)")) {
									countryFlag = "South-Korea";
								} else if (country.equals("菲律賓")) {
									countryFlag = "Philippines";
								} else if (country.equals("斯里蘭卡")) {
									countryFlag = "Sri-Lanka";
								} else if (country.equals("印度")) {
									countryFlag = "India";
								} else if (country.equals("德國")) {
									countryFlag = "Germany";
								} else if (country.equals("越南")) {
									countryFlag = "Viet-Nam";
								} else if (country.equals("馬來西亞")) {
									countryFlag = "Malaysia";
								} else if (country.equals("科威特")) {
									countryFlag = "Kuwait";
								} else if (country.equals("巴基斯坦")) {
									countryFlag = "Pakistan";
								} else if (country.equals("英國")) {
									countryFlag = "United-Kingdom";
								} else if (country.equals("帛琉")) {
									countryFlag = "Palau";
								} else if (country.equals("法國")) {
									countryFlag = "France";
								} else if (country.equals("柬埔寨")) {
									countryFlag = "Cambodia";
								} else if (country.equals("沙烏地阿拉伯")) {
									countryFlag = "Saudi-Arabia";
								} else if (country.equals("義大利")) {
									countryFlag = "Italy";
								} else if (country.equals("新加坡")) {
									countryFlag = "Singapore";
								} else if (country.equals("加拿大")) {
									countryFlag = "Canada";
								} else if (country.equals("奧地利")) {
									countryFlag = "Austria";
								} else if (country.equals("寮國")) {
									countryFlag = "Laos";
								} else if (country.equals("緬甸")) {
									countryFlag = "Myanmar-Burma";
								} else if (country.equals("盧森堡")) {
									countryFlag = "Luxembourg";
								} else if (country.equals("比利時")) {
									countryFlag = "Belgium";
								} else if (country.equals("俄羅斯")) {
									countryFlag = "Russian-Federation";
								} else {
									countryFlag = "unknown";
								}
					%>
									<img src="flags/national-flag-symbols/<%=countryFlag %>-Flag.png" align="absmiddle" alt="<%=country %>" onmouseover="Tip('<%=country %>')" onmouseout="UnTip()">
									<a href="http://zh.wikipedia.org/zh-tw/<%=city %>" target="_blank"><%=city %></a>
					<%
							} else {
					%>
								<a href="http://zh.wikipedia.org/zh-tw/<%=temp %>" target="_blank"><%=temp %></a>
					<%
							}
						}
					%>
				</td>
				
				
				<td>
					<%
						if (beans.get(i).getAirline().equalsIgnoreCase("FM")) {
							temp = "./logos/fm.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KE")) {
							temp = "./logos/ke.gif";						
						} else if (beans.get(i).getAirline().equalsIgnoreCase("SC")) {
							temp = "./logos/sc.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MU")) {
							temp = "./logos/mu.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CZ")) {
							temp = "./logos/cz.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CA")) {
							temp = "./logos/ca.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CK")) {
							temp = "./logos/ck.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CI")) {
							temp = "./logos/ci.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("JL")) {
							temp = "./logos/jl.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KZ")) {
							temp = "./logos/kz.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AC")) {
							temp = "./logos/ac.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("3U")) {
							temp = "./logos/3u.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("B7")) {
							temp = "./logos/b7.gif";						
						} else if (beans.get(i).getAirline().equalsIgnoreCase("NH")) {
							temp = "./logos/nh.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("D7")) {
							temp = "./logos/d7.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("US")) {
							temp = "./logos/us.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("GA")) {
							temp = "./logos/ga.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("P7")) {
							temp = "./logos/p7.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("TR")) {
							temp = "./logos/tr.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("BR")) {
							temp = "./logos/br.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("EK")) {
							temp = "./logos/ek.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AA")) {
							temp = "./logos/aa.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("BA")) {
							temp = "./logos/ba.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("Z2")) {
							temp = "./logos/z2.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("HX")) {
							temp = "./logos/hx.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("TG")) {
							temp = "./logos/tg.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("HU")) {
							temp = "./logos/hu.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("LJ")) {
							temp = "./logos/lj.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("BX")) {
							temp = "./logos/bx.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MP")) {
							temp = "./logos/mp.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AK")) {
							temp = "./logos/ak.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MH")) {
							temp = "./logos/mh.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CX")) {
							temp = "./logos/cx.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("5J")) {
							temp = "./logos/5j.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("OK")) {
							temp = "./logos/ok.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("3K")) {
							temp = "./logos/3k.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("ZH")) {
							temp = "./logos/zh.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KL")) {
							temp = "./logos/kl.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("K9")) {
							temp = "./logos/k9.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("GE")) {
							temp = "./logos/ge.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("Y8")) {
							temp = "./logos/y8.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KA")) {
							temp = "./logos/ka.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("LD")) {
							temp = "./logos/ld.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AE")) {
							temp = "./logos/ae.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("PR")) {
							temp = "./logos/pr.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("VN")) {
							temp = "./logos/vn.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MF")) {
							temp = "./logos/mf.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("SQ")) {
							temp = "./logos/sq.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AZ")) {
							temp = "./logos/az.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("DL")) {
							temp = "./logos/dl.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("FE")) {
							temp = "./logos/fe.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("NX")) {
							temp = "./logos/nx.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("QF")) {
							temp = "./logos/qf.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("5X")) {
							temp = "./logos/5x.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("UA")) {
							temp = "./logos/ua.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("FX")) {
							temp = "./logos/fx.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("OZ")) {
							temp = "./logos/oz.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CV")) {
							temp = "./logos/cv.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("5K")) {
							temp = "./logos/5k.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("TW")) {
							temp = "./logos/tw.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("ZE")) {
							temp = "./logos/ze.gif";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("LH")) {
							temp = "./logos/lh.gif";
						} else {
							temp = beans.get(i).getAirline();
						}
					%>
					<img src="<%=temp %>" align="absmiddle">
										
					<%
						if (beans.get(i).getAirline().equalsIgnoreCase("FM")) {
							temp = "上海航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KE")) {
							temp = "大韓航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("SC")) {
							temp = "山東航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MU")) {
							temp = "中國東方航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CZ")) {
							temp = "中國南方航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CA")) {
							temp = "中國國際航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CK")) {
							temp = "中國貨運航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CI")) {
							temp = "中華航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("JL")) {
							temp = "日本航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KZ")) {
							temp = "日本貨物航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AC")) {
							temp = "加拿大航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("3U")) {
							temp = "四川航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("B7")) {
							temp = "立榮航空";							
						} else if (beans.get(i).getAirline().equalsIgnoreCase("NH")) {
							temp = "全日空航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("D7")) {
							temp = "全亞洲航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("US")) {
							temp = "全美航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("GA")) {
							temp = "印尼航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("P7")) {
							temp = "帛琉航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("TR")) {
							temp = "欣丰虎航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("BR")) {
							temp = "長榮航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("EK")) {
							temp = "阿酋國際航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AA")) {
							temp = "美國美利堅航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("BA")) {
							temp = "英亞航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("Z2")) {
							temp = "飛龍航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("HX")) {
							temp = "香港航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("TG")) {
							temp = "泰國航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("HU")) {
							temp = "海南航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("LJ")) {
							temp = "真航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("BX")) {
							temp = "釜山航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MP")) {
							temp = "馬丁航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AK")) {
							temp = "馬亞洲航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MH")) {
							temp = "馬來西亞航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CX")) {
							temp = "國泰航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("5J")) {
							temp = "宿霧太平洋航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("OK")) {
							temp = "捷克航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("3K")) {
							temp = "捷星亞洲航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("ZH")) {
							temp = "深圳航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KL")) {
							temp = "荷蘭航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("K9")) {
							temp = "通里薩航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("GE")) {
							temp = "復興航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("Y8")) {
							temp = "揚子江快運";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("KA")) {
							temp = "港龍航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("LD")) {
							temp = "華民航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AE")) {
							temp = "華信航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("PR")) {
							temp = "菲律賓航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("VN")) {
							temp = "越南航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("MF")) {
							temp = "廈門航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("SQ")) {
							temp = "新加坡航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("AZ")) {
							temp = "義大利航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("DL")) {
							temp = "達美航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("FE")) {
							temp = "遠東航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("NX")) {
							temp = "澳門航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("QF")) {
							temp = "澳洲航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("5X")) {
							temp = "優比速航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("UA")) {
							temp = "聯合航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("FX")) {
							temp = "聯邦快遞航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("OZ")) {
							temp = "韓亞航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CV")) {
							temp = "廬森堡航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("5K")) {
							temp = "關島航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("TW")) {
							temp = "德威航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("ZE")) {
							temp = "易斯達航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("LH")) {
							temp = "德國航空";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("Y8")) {
							temp = "揚子江快運";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("8Y")) {
							temp = "中國郵航";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CK")) {
							temp = "中國貨運";
						} else if (beans.get(i).getAirline().equalsIgnoreCase("CV")) {
							temp = "盧航";
						} else {
							temp = beans.get(i).getAirline();
						}
					%>
					
					<!-- <a href="javascript:void(0)" onmouseover="TagToTip('BR', WIDTH, 330, TITLE, '航空公司簡介', SHADOW, true, FADEIN, 300, FADEOUT, 300, STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true)" onmouseout="UnTip()"> -->
					
					<%=temp %>
					<!-- </a> -->
				</td>
				
				<td>
					<%
						temp = beans.get(i).getAirline() + "-" + beans.get(i).getFlightNo();
					%>
						<%=temp %>
				</td>
				
				
				<td>
					<%
						temp = beans.get(i).getScheduledTime();
					%>
					<%
						if (beans.get(i).getScheduledTime().equals(beans.get(i).getExpectedTime())) {
					%>
						<%=temp %>
					<%
						} else {
					%>
						<font color=#FF0000><%=temp %></font>
					<%
						}
					%>
				</td>
				
				<td>
					<%
						temp = beans.get(i).getExpectedTime();
					%>
					<%
						if (beans.get(i).getScheduledTime().equals(beans.get(i).getExpectedTime())) {
					%>
						<%=temp %>
					<%
						} else {
					%>
						<font color=#FF0000><%=temp %></font>
					<%
						}
					%>
				</td>
				
				
				<td>
					<%
						temp = beans.get(i).getTerminal();
						if (temp.equals("")) {
							temp = "&nbsp;";
						}
					%>
						<%=temp %>
				</td>
				
				
				<td>
					<%
						temp = beans.get(i).getGate();
						if (temp.equals("")) {
							temp = "&nbsp;";
						}
					%>
						<%=temp %>
				</td>
				
				
				<td>
					<%
						if (beans.get(i).getStatus().equalsIgnoreCase("CANCELLED")) {
							temp = "取消";
						} else if (beans.get(i).getStatus().equalsIgnoreCase("SCHEDULE CHANGE")) {
							temp = "時間更改";
						} else if (beans.get(i).getStatus().equalsIgnoreCase("DELAY")) {
							temp = "延遲";
						} else if (beans.get(i).getStatus().equalsIgnoreCase("ON TIME")) {
							temp = "準時";
						} else if (beans.get(i).getStatus().equalsIgnoreCase("DEPARTED")) {
							temp = "已飛";						
						} else {
							temp = beans.get(i).getStatus();
						}
					%>
					<%=temp %>
				</td>
				
			</tr>
		
		<%
			}
			}
		%>

	</tbody>
	</table>


<center><font size=2 face="Arial" color="#777777">航班資料由<a href="http://www.taoyuan-airport.com">桃園機場</a>提供‧國旗圖示由<a href="http://www.senojflags.com">SenoiFlags</a>提供</center>
</body>
</html>